package com.homegoods.discover.model;

import com.homegoods.classify.model.Constant;
import com.homegoods.discover.item.VideoItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

/**
 * @author QiQi
 * @ClassName: VideoModel
 * @date 2018/9/10
 * @description
 */
public class VideoModel extends BaseModel<VideoItem> {

    /**
     * title：标题；
     * bgimg：图片；
     * source：来源；
     * likenum：点赞数；
     * url：视频地址；
     * cmgnum：评论数；
     * <p>
     * "num": "1",
     * "sid": "86Tv9ApynV/IlPQE/oKROqnC5+iinSD7xxREcvtc6Vgnm4BH+UXJlyOhdOz6YfZH",
     * "title": "蔡晓的快乐时光",
     * "bgimg": "/upath/2018/11/28/172133661768103ufi.jpg",
     * "source": "卡斗",
     * "likenum": 11,
     * "url": "http://www.myzpzy.com/upath/2018/10/31/75586bafe8bc2a1964fb75efa3.mp4",
     * "cmgnum": 0
     */
//    private String videoUrl;
//    private String videoThumbUrl;
//    private String title;
//    private String headUrl;
//    private String origin;
//    private String goodCount;
//    private String msgCount;
    private String num;
    private String sid;
    private String title;
    private String bgimg;
    private String source;
    private String likenum;
    private String url;
    private String cmgnum;

    public String getNum() {
        return num == null ? "" : num;
    }

    public void setNum(String num) {
        this.num = num;
    }

    public String getSid() {
        return sid == null ? "" : sid;
    }

    public void setSid(String sid) {
        this.sid = sid;
    }

    public String getBgimg() {
        return Constant.SERVER_URL + (bgimg == null ? "" : bgimg);
    }

    public void setBgimg(String bgimg) {
        this.bgimg = bgimg;
    }

    public String getSource() {
        return source == null ? "" : source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    public String getLikenum() {
        return likenum;
    }

    public void setLikenum(String likenum) {
        this.likenum = likenum;
    }

    public String getCmgnum() {
        return cmgnum;
    }

    public void setCmgnum(String cmgnum) {
        this.cmgnum = cmgnum;
    }

    public String getUrl() {
        return url == null ? "" : url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

//    public String getVideoThumbUrl() {
//        return videoThumbUrl == null ? "" : videoThumbUrl;
//    }
//
//    public void setVideoThumbUrl(String videoThumbUrl) {
//        this.videoThumbUrl = videoThumbUrl;
//    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

//    public String getHeadUrl() {
//        return headUrl == null ? "" : headUrl;
//    }
//
//    public void setHeadUrl(String headUrl) {
//        this.headUrl = headUrl;
//    }
//
//    public String getOrigin() {
//        return origin == null ? "" : origin;
//    }
//
//    public void setOrigin(String origin) {
//        this.origin = origin;
//    }
//
//    public String getGoodCount() {
//        return goodCount == null ? "" : goodCount;
//    }
//
//    public void setGoodCount(String goodCount) {
//        this.goodCount = goodCount;
//    }
//
//    public String getMsgCount() {
//        return msgCount == null ? "" : msgCount;
//    }
//
//    public void setMsgCount(String msgCount) {
//        this.msgCount = msgCount;
//    }

    @Override
    public VideoItem createItem(MultiTypeAdapter adapter) {
        return new VideoItem(this, adapter);
    }
}

